import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login/Login'

import UserFirst from '@/components/Login/ForUsers/UserHome'

import VistorFirst from '@/components/Login/ForVistors/VistorHome'
import VistorFaceRecognition from '@/components/Login/ForVistors/CommonFunction/VistorFaceRecognition'
import VistorGames from '@/components/Login/ForVistors/CommonFunction/VistorGames'


import GamesMenu from '@/components/Function/Games/GamesMenu'
import ColorfulColor from '@/components/Function/Games/Games/ColorfulColor'


Vue.use(Router)
export default new Router({
  // mode:'history',
  routes: [
    {
      path: '/',
      component: Login,
    },{
      path:'/user',
      component:UserFirst,
    },{
      path:'/vistor',
      component:VistorFirst
    },{
      path:'/vistor/faceRecognition',
      component:VistorFaceRecognition,
    },{
      path:'/vistor/games',
      component:VistorGames,
      children:[
        {
          path:'/vistor/games/menu',
          component:GamesMenu,
        },{
          path:'/visot/games/colorfulColor',
          component:ColorfulColor
        }
      ]
    }
  ]
})
